# 混合检索实现
def hybrid_retrieval(query):
    vector_results = faiss_search(query_embedding, k=50)
    keyword_results = es_search(extract_keywords(query))
    return apply_rules(vector_results + keyword_results)